package com.example.mobile2021606144ywr0429;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.os.PersistableBundle;
import android.util.Log;
import android.view.View;
import android.view.ViewGroup;

public class MainActivity extends AppCompatActivity {
    private String TAG ="LifeCycle";

    @Override
    protected void onStart() {
        super.onStart();
        Log.i(TAG,"onStart:Running");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.i(TAG,"onStop:Running");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.i(TAG,"onDestroy:Running");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.i(TAG,"onPause:Running");
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.i(TAG,"onResume:Running");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.i(TAG,"onRestart:Running");
    }

    @Override
    public void addContentView(View view, ViewGroup.LayoutParams params) {
        super.addContentView(view, params);
    }

    @Override
    public void onCreate(@Nullable Bundle savedInstanceState, @Nullable PersistableBundle persistentState) {
        super.onCreate(savedInstanceState, persistentState);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        Log.i(TAG,"onCreate:Running");
    }
}